//
//  DetailViewcontroller.h
//  FanTest
//
//  Created by Cheng on 12/6/28.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <SDWebImage/UIImageView+WebCache.h>
#import <MessageUI/MessageUI.h>
#import "ClipToMyBoardView.h"
#import "AccountInfo.h"
#import "Crop.h"
#import "ShareMedia.h"
#import "AppDelegate.h"
#import "BK_Enviroment.h"
#import "MediaListsMedia.h"
#import "WebViewController.h"
#import "EditNotes.h"
#import "CommentView.h"
#import "CreateBookView.h"

@class DetailViewController;

@protocol DetailViewControllerDelegate <NSObject>

-(void)DetailViewControllerDidClose:(DetailViewController *)controller;

@end

@interface DetailViewController : UIViewController <ClipToMyBoardDelegate,ShareMediaDelegate,MFMailComposeViewControllerDelegate,UITextViewDelegate, SDWebImageManagerDelegate, UIGestureRecognizerDelegate, EditNotesDelegate, CommentViewDelegate, UIWebViewDelegate, CreateBookViewDelegate>
{
    IBOutlet UILabel *Lab_DeatilTitle;
    IBOutlet UILabel *Lab_SourceAndAuthor;
    IBOutlet UIImageView *IVw_Image;
    IBOutlet UIImageView *IVw_Logo;
    IBOutlet UIImageView *IVw_Tag;
    IBOutlet UIButton *Bt_SavetoMyboard;
    IBOutlet UIButton *Bt_NoteShowOrHide;
    IBOutlet UIButton *Bt_Comment;
    IBOutlet UIButton *Bt_ShowWeb;
    IBOutlet UIButton *Bt_AddComment;
    IBOutlet UIWebView *WVw_GoogleFeed;
    IBOutlet UIWebView *WVw_description;
    IBOutlet UIActivityIndicatorView *ActivityView;
    IBOutlet UIScrollView *SV_Detail;
    
    IBOutlet CommentView *Vw_Comment;
    IBOutlet ShareMedia *Vw_Share;
    IBOutlet ClipToMyBoardView *Vw_addClip;
    IBOutlet EditNotes *Vw_Notes;
}
@property (nonatomic, strong) UILabel *Lab_DeatilTitle;
@property (nonatomic, strong) UILabel *Lab_SourceAndAuthor;
@property (nonatomic, strong) UIImageView *IVw_Image;
@property (nonatomic, strong) UIImageView *IVw_Logo;
@property (nonatomic, strong) UIImageView *IVw_Tag;
@property (nonatomic, strong) UIButton *Bt_SavetoMyboard;
@property (nonatomic, strong) UIButton *Bt_NoteShowOrHide;
@property (nonatomic, strong) UIButton *Bt_Comment;
@property (nonatomic, strong) UIButton *Bt_ShowWeb;
@property (nonatomic, strong) UIButton *Bt_AddComment;
@property (nonatomic, strong) UIWebView *WVw_GoogleFeed;
@property (nonatomic, strong) UIWebView *WVw_description;
@property (nonatomic, strong) UIActivityIndicatorView *ActivityView;
@property (nonatomic, strong) UIScrollView *SV_Detail;

@property (nonatomic, strong) CommentView *Vw_Comment;
@property (nonatomic, strong) ShareMedia *Vw_Share;
@property (nonatomic, strong) ClipToMyBoardView *Vw_addClip;
@property (nonatomic, strong) EditNotes *Vw_Notes;
@property (nonatomic, strong) CreateBookView *Vw_CreateBook;
@property (nonatomic, strong) AccountInfo *AI_accountDetail;
@property (nonatomic, strong) MediaListsMedia *MLM_detail;
@property (nonatomic, strong) MediaListsImage *MLI_images;
@property (nonatomic, strong) BK_Enviroment *BK_En_object;

@property (nonatomic, assign) int PageNum;
@property (nonatomic, assign) int Check_Description_Index;

@property (nonatomic, weak) id <DetailViewControllerDelegate> delegate;

-(IBAction)clipToMyBoard:(id)sender;
-(IBAction)sharePressed:(id)sender;
-(IBAction)goback:(id)sender;
- (IBAction)HideNotePressed:(id)sender;

@end
